#ifndef _FILEERROR_H_
#define _FILEERROR_H_

#include <string>

#include "filesystemerror.h"
#include "file.h"

using std::string;

namespace Avd {

class FileError : public FileSystemError {
public:
	FileError(string error, const File& file = File()) : FileSystemError(error), file(file) { }

	virtual ~FileError() throw() { }

	File& getFile() { return file; }

private:
	File file;
};

}

#endif // _FILEERROR_H_
